package cn.com.ctcloud.microservice.dynamicds.filter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Title: 分布式动态数据源路由
 * <p>
 * Description: 拦截器的注册类，负责让orgCodeInterceptor生效。
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: Liaoning Open Data Communication Co.,Ltd.
 * 
 * @author lihui
 * @version 1.0.0
 */
public class InterceptorRegister implements WebMvcConfigurer {
	@Autowired
	private OrganCodeInterceptor orgCodeInterceptor;

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(orgCodeInterceptor);
	}

}
